using System;

namespace ModulesToolkit.DataAccess
{
    /// <summary>
    /// Summary description for DALException.
    /// </summary>
    public class SqlBaseException : Exception
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public SqlBaseException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }
    }

    /// <summary>
    /// Summary description for DALUniqueConstraintException.
    /// </summary>
    public class SqlUniqueConstraintException : SqlBaseException
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public SqlUniqueConstraintException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }
    }

    /// <summary>
    /// Summary description for DALLoginException.
    /// </summary>
    public class SqlLoginException : SqlBaseException
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public SqlLoginException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }
    }

    /// <summary>
    /// Summary description for DALForeignKeyException.
    /// </summary>
    public class SqlForeignKeyException : SqlBaseException
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public SqlForeignKeyException(string message, System.Exception innerException)
            : base(message, innerException)
        {
        }
    }
}
